package com.example.demo.controller;

import com.example.demo.response.UserVO;
import com.example.demo.service.PdfService;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/api/pdf/v1")
public class PdfController {

    @Resource
    PdfService pdfService;

    @PostMapping("/upload")
    @ResponseBody
    public List<UserVO> uploadUserImg(@RequestPart("file") MultipartFile file){

        return pdfService.analysisPdf(file);


    }

}
